package com.jy.wms.controller;

import com.github.pagehelper.Page;
import com.jy.wms.common.base.BaseController;
import com.jy.wms.pojo.SysUser;
import com.jy.wms.service.LoginService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @ClassName: LoginController
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @Author zzp
 * @Date 2017/10/22 10:47
 */
@RestController
@Api(value = "测试",description = "测试接口")
public class LoginController extends BaseController<LoginService,SysUser> {
    protected static Logger logger= LoggerFactory.getLogger(LoginController.class);
    @ApiOperation(value = "用户", notes = "没有条件默认查询所有；page和rows，根据分页信息查询；如果条件查询，按照规范写查询条件即可")
    @PostMapping(value = "/")
    List<SysUser> home() {
        Page<SysUser> flag= baseService.baseList();
        return flag;
    }
}
